package design.mode.template.item2;

/**
 * 回调函数的应用 JdbcTemplate
 * setClickListener(）
 * addShutdownHook()
 *
 * @author ZhongMingde on 2021/11/8
 */

public class AClass {

  public static void main(String[] args) {
    BClass b = new BClass();
    b.process(new ICallback() {
      @Override
      public void methodToCallBack() {
        System.out.println("Call back me.");
      }
    });
  }

}
